
ac.skill('模板闪电被动'){
    temp = '攻击触发',
    tip = [[攻击有'odds'%几率对目标造成伤害]],
    on_run = function(self,hero,target)
        local height = 600
        local start = hero:getEnemyPoint()
        local effect1 = start:add_effect(self.model1)
        effect1:set_height(height)
        ac.wait(200,function()
            local light = ac.lightning({
                id = self.lightning,
                from = start,
                to = start,
                fade = 1,
                time = 0.5,
                ozf = height,
                ozt = height,
            })

            ac.loop(0.03,function(t)
                light.ozt = light.ozt - 20
                effect1:set_height(light.ozt)
                if light.ozt <= 0 then
                    light.ozt = 0
                    start:add_effect(self.model2):remove()
                    effect1:remove()
                    t:remove()
                    hero:aoe_damage(start,150,self.rate1,self)
                end
            end)
        end)
    end,
}


ac.skill('SSR-力量1'){
    temp = '模板闪电被动',
    model1 = [[Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl]],
    model2 = [[Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl]],
    lightning = '闪电链次',
}
ac.skill('SSR-力量2'){
    temp = '模板闪电被动',
    model1 = [[Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl]],
    model2 = [[Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl]],
    lightning = '死亡之指',
}

ac.skill('SSR-力量3'){
    temp = '模板闪电被动',
    model1 = [[Abilities\Weapons\FrostWyrmMissile\FrostWyrmMissile.mdl]],
    model2 = [[Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl]],
    lightning = '灵魂锁链',
}

ac.skill('SSR-力量4'){
    temp = '模板闪电被动',
    model1 = [[Abilities\Spells\Undead\Possession\PossessionMissile.mdl]],
    model2 = [[Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl]],
    lightning = '魔力之焰',
}
